package com.lovo.stock.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.stock.bean.CustomerBean;
import com.lovo.stock.bean.PageInfo;

import java.util.List;

/**
 * 客户业务接口
 */
public interface ICustomerService {
    /**
     * 分页查询客户
     * @return IPage<CustomerBean>
     */
    IPage<CustomerBean> queryCustomerByPage(PageInfo<CustomerBean> pageInfo);

    /**
     * 获取所有客户
     * @return
     */
    List<CustomerBean> queryAllCustomer();

    /**
     * 通过id查询客户信息
     * @param id
     * @return
     */
    CustomerBean queryCustomerInfoById(int id);

    /**
     * 更新客户信息
     * @param customerBean
     */
    void updateCustomer(CustomerBean customerBean);

    /**
     * 添加客户
     * @param customerBean
     */
    void addCustomer(CustomerBean customerBean);
}
